import React from 'react'
import ReactDOM from 'react-dom'
// 导入 ant-design的样式
import 'antd/dist/antd.css'
import '@/index.scss'
import App from '@/App.js'
// 把仓库的数据 传递给后代
import store from './store'
import { Provider } from 'react-redux'
// 导入moment的中文语言包
import 'moment/locale/zh-cn'
// 导入antd的中文语言包 i18n internationalization
import locale from 'antd/lib/locale/zh_CN'
// 配置Provider 把数据传递给后代
import { ConfigProvider } from 'antd'

ReactDOM.render(
  <Provider store={store}>
    <ConfigProvider locale={locale}>
      <App />
    </ConfigProvider>
  </Provider>,
  document.getElementById('root')
)
